Skip to content

Conversation

@olpipi
Copy link
Contributor

@olpipi olpipi commented Nov 4, 2025

Details:

  • FuseMOEExperts. Check if all inputs of postponed_constant are constants

Tickets:

  • ticket-id

@olpipi olpipi requested a review from a team as a code owner November 4, 2025 11:35
@olpipi olpipi requested review from CuriousPanCake and removed request for a team November 4, 2025 11:35
@github-actions github-actions bot added the category: transformations OpenVINO Runtime library - Transformations label Nov 4, 2025
@mryzhov mryzhov requested a review from a team November 4, 2025 11:35

auto fused = std::make_shared<ov::op::v0::Concat>(inputs, 0);
fused->get_rt_info()["postponed_constant"] = true;
if (std::all_of(inputs.begin(), inputs.end(), [](const Output<Node>& input) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it impact on some tests?
Or there should be one to fail without new code.

Copy link
Contributor Author

@olpipi olpipi Nov 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a fix for potential corner case. Right now semantically guarantied that all inputs are constants. But if for example current transformation (or some others) is changed, and behavior is changed as well, we get an error on serialization step.
So no tests are affected right now

@olpipi olpipi added this to the 2026.0 milestone Nov 4, 2025
@mryzhov
Copy link
Contributor

mryzhov commented Nov 7, 2025

That was a temporary solution, maybe it would be better to introduce a more robust way to work with big constants instead of fixing corner cases?

@olpipi olpipi added this pull request to the merge queue Nov 7, 2025
Merged via the queue into openvinotoolkit:master with commit 25038a9 Nov 7, 2025
203 checks passed
@olpipi olpipi deleted the moe_concat_check branch November 7, 2025 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: transformations OpenVINO Runtime library - Transformations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants